package com.ruoyi.staff.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工表对象 ep_staff
 * 
 * @author ruoyi
 * @date 2024-08-09
 */
public class EpStaff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 工号 */
    @Excel(name = "工号")
    private Long workId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 姓别 */
    @Excel(name = "姓别")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 底薪 */
    @Excel(name = "底薪")
    private String basicSalary;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateOfEmployment;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWorkId(Long workId) 
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBasicSalary(String basicSalary) 
    {
        this.basicSalary = basicSalary;
    }

    public String getBasicSalary() 
    {
        return basicSalary;
    }
    public void setDateOfEmployment(Date dateOfEmployment) 
    {
        this.dateOfEmployment = dateOfEmployment;
    }

    public Date getDateOfEmployment() 
    {
        return dateOfEmployment;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("workId", getWorkId())
            .append("name", getName())
            .append("sex", getSex())
            .append("age", getAge())
            .append("basicSalary", getBasicSalary())
            .append("dateOfEmployment", getDateOfEmployment())
            .append("remarks", getRemarks())
            .toString();
    }
}
